package com.cooba.activitys.user;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.cooba.R;
/**
 * Created by Administrator on 2015/12/16.
 * 忘记密码
 */
public class ForgetPasswordActivity extends AppCompatActivity implements View.OnClickListener {
    private Button mNextbutton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_forget_password);
        mNextbutton = (Button) findViewById(R.id.nextbutton);
        mNextbutton.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.nextbutton:

//                HttpUtils http = new HttpUtils();
//                String url = "http://a.cooba.cc/macmark.json";
//                RequestParams params = new RequestParams();
//                http.send(HttpRequest.HttpMethod.GET, url, params, new RequestCallBack<String>() {
//                    @Override
//                    public void onSuccess(ResponseInfo<String> responseInfo) {
//                        try {
//                            JSONObject jsonObject = new JSONObject(responseInfo.result);
//                            String mac = jsonObject.get("MAC").toString();
//                            Log.e("jsonObject", mac);
//                        } catch (JSONException e) {
//                            e.printStackTrace();
//                        }
//                        Toast.makeText(getApplicationContext(), "请求结果", Toast.LENGTH_SHORT).show();
//                    }
//
//                    @Override
//                    public void onFailure(HttpException error, String msg) {
//                        Toast.makeText(getApplicationContext(), "访问失败" + msg, Toast.LENGTH_SHORT).show();
//                    }
//
//                });

                Intent intent = new Intent(getApplication(), SetPasswordActivity.class);
                startActivity(intent);
                finish();
                break;
        }
    }
}
